Skip to content

fix(toast): raise sidebar toast placement#5420

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/sidebar-toast-position
Jun 1, 2026
Merged

fix(toast): raise sidebar toast placement#5420
ComputelessComputer merged 1 commit into
mainfrom
fix/sidebar-toast-position

Conversation

@ComputelessComputer
Copy link
Copy Markdown
Collaborator

@ComputelessComputer ComputelessComputer commented Jun 1, 2026

Move the upgrade toast higher when the left sidebar timeline is active and cover the placement behavior with focused tests.


Note

Low Risk
UI-only toast positioning and tests; no auth, data, or API changes.

Overview
When the left sidebar timeline is expanded, the main shell now passes placement="left-sidebar" to ToastArea instead of always using the default layout.

ToastArea gains an optional placement prop and moves toast positioning from the fixed top-14 class to explicit left / top styles. In left-sidebar mode it centers horizontally on the main chat surface ([data-chat-floating-anchor]) and sits slightly below its top edge, updating on resize, scroll, and ResizeObserver. Default mode keeps the prior top-timeline behavior (calc(50% + offset) and 56px top). Collapsed sidebar timeline still uses default placement.

New unit tests cover shell placement wiring and toast position behavior (default, anchored, scroll, and fallback when placement changes).

Reviewed by Cursor Bugbot for commit 944d462. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 1, 2026

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit 944d462
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a1d0191bc157e00091c7db3

Comment thread apps/desktop/src/sidebar/toast/index.tsx
@ComputelessComputer ComputelessComputer force-pushed the fix/sidebar-toast-position branch 2 times, most recently from c381bbe to 402d28e Compare June 1, 2026 03:39
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 402d28e. Configure here.

Comment thread apps/desktop/src/sidebar/toast/index.tsx Outdated
Move the upgrade toast higher when the left sidebar timeline is active and cover the placement behavior with focused tests.
@ComputelessComputer ComputelessComputer force-pushed the fix/sidebar-toast-position branch from 402d28e to 944d462 Compare June 1, 2026 03:50
@ComputelessComputer ComputelessComputer merged commit b86cbbc into main Jun 1, 2026
10 checks passed
@ComputelessComputer ComputelessComputer deleted the fix/sidebar-toast-position branch June 1, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant